#encoding=utf-8

class CrawModel:
    pass

# 码头数据列表

class Basics:
    # 提单号
    blNo = ''
    # 集装箱数
    containerCount = ''
    # 箱货重，单位KG
    ctnrWeight = ''
    # 卸货港
    filingPod = ''
    # 装货港
    filingPol = ''
    # 数据MD5，判断是否重复
    md5Result = ''
    # 体积s
    measurement = ''
    # 船东来源地址，多个以, 分割
    shipUrls = ''
    # 船名 / 航次
    vslVoy = ''
    # 来源网站
    wharfUrl = ''

    def __init__(self,blNo,containerCount,ctnrWeight,filingPod,filingPol,md5Result,measurement,shipUrls,vslVoy,wharfUrl):
        self.blNo = blNo
        self.containerCount = containerCount
        self.ctnrWeight = ctnrWeight
        self.filingPod = filingPod
        self.filingPol = filingPol
        self.md5Result = md5Result
        self.measurement = measurement
        self.shipUrls = shipUrls
        self.vslVoy = vslVoy
        self.wharfUrl = wharfUrl


# 集装箱信息
class Containers:
    # 提单号
    blNo = ''
    # 箱号
    containerNo = ''
    # 箱况
    ctnrStatus = ''
    # 箱货类
    ctnrType = ''
    # 箱货重，单位KG
    ctnrWeight =''
    # 时间
    currentDate = ''
    # 场位 0不在场 1 在场
    fieldPosition = ''
    # 卸货港
    filingPod = ''
    # 在场状态 0不在场 1 在场
    presenceStatus = ''
    # 质量
    quantity = ''
    # 印章编号 / 铅封号
    sealNo = ''
    # 服务类型
    serviceType = ''
    # 大小 / 类型
    sizeType = ''
    # 当前状态
    status = ''
    # 温度
    temperature = ''
    # VGM
    vgm = ''

    def __init__(self,blNo,containerNo,ctnrStatus,ctnrType,ctnrWeight,currentDate,fieldPosition,filingPod,presenceStatus,quantity,sealNo,serviceType,sizeType,status,temperature,vgm):
        self.blNo = blNo
        self.containerNo = containerNo
        self.ctnrStatus = ctnrStatus
        self.ctnrType = ctnrType
        self.ctnrWeight = ctnrWeight
        self.currentDate = currentDate
        self.fieldPosition = fieldPosition
        self.filingPod = filingPod
        self.presenceStatus = presenceStatus
        self.quantity = quantity
        self.sealNo = sealNo
        self.serviceType = serviceType
        self.sizeType = sizeType
        self.status = status
        self.temperature = temperature
        self.vgm = vgm


# 船东海关信息
class Customs:
    # 提单号
    blNo = ''
    # 时间
    currentDate = ''
    # 海关
    customs = ''
    # 描述
    description = ''
    # 卸货港
    filingPod = ''
    # 装运港
    filingPol = ''
    # 船名 / 航次
    vslVoy = ''

    def __init__(self,blNo,currentDate,customs,description,filingPod,filingPol,vslVoy):
        self.blNo = blNo
        self.currentDate = currentDate
        self.customs = customs
        self.description = description
        self.filingPod = filingPod
        self.filingPol = filingPol
        self.vslVoy = vslVoy


# 船东开航信息
class Sails:
    # 到达日
    arrivedAt = ''
    # 提单号
    blNo = ''
    # 卸货港
    filingPod = ''
    # 装货港
    filingPol = ''
    # 出发日
    startAt = ''
    # 船名
    vessel = ''

    def __init__(self,arrivedAt,blNo,filingPod,filingPol,startAt,vessel):
        self.arrivedAt = arrivedAt
        self.blNo = blNo
        self.filingPod = filingPod
        self.filingPol = filingPol
        self.startAt = startAt
        self.vessel = vessel

# 船东状态
class Statuses:
    # 提单号
    blNo = ''
    # 时间
    currentDate = ''
    # 位置
    location = ''
    # 状态
    status = ''
    # 船名 / 航次
    vslVoy = ''

    def __init__(self,blNo,currentDate,location,status,vslVoy):
        self.blNo = blNo
        self.currentDate = currentDate
        self.location = location
        self.status = status
        self.vslVoy = vslVoy


# 码头信息
class Wharf:
    # 提单号
    blNo = ''
    # 海关放行，0未放行，1 放行
    customsClearance = ''
    # 进出口类型 import 进口 EXPORTS出口
    ieType = ''
    # VGM
    vgm = ''
    # 码头名
    wharf = ''
    # 码头放心，0未放行，1放行
    wharfClearance = ''

    def __init__(self,blNo,customsClearance,ieType,vgm,wharf,wharfClearance):
        self.blNo = blNo
        self.customsClearance = customsClearance
        self.ieType = ieType
        self.vgm = vgm
        self.wharf = wharf
        self.wharfClearance = wharfClearance


# 码头运输状态
class WharfTransports:
    # 提单号
    blNo = ''
    # 进出场类型
    importExportType = ''
    # 时间
    timeAt = ''
    # 航次 / 车号
    voyCar = ''
    # 船名 / 车队
    vslnameCar = ''
    # 进 / 出场船名航次
    vslnameVoy = ''

    def __init__(self,blNo,importExportType,timeAt,voyCar,vslnameCar,vslnameVoy):
        self.blNo = blNo
        self.importExportType = importExportType
        self.timeAt = timeAt
        self.voyCar = voyCar
        self.vslnameCar = vslnameCar
        self.vslnameVoy = vslnameVoy

# 码头航次信息
class WharfVoy:
    # 靠泊时间
    berthingAt = ''
    # 提单号
    blNo = ''
    # 关闸时间
    closingAt = ''
    # 截箱时间
    cutCtnrAt = ''
    # 截单时间
    cutNoAt = ''
    # 截止进场
    cutoffEntryAt = ''
    # 离泊时间
    departureAt = ''
    # 可进场时间
    entryAt = ''
    # 预泊时间
    preBerthingAt = ''
    # 预离时间
    preDepartureAt = ''
    # 航线代码
    routeCode = ''
    # 船公司
    vslCompany = ''
    # 船舶中文名
    vslnameCh = ''

    def __init__(self,berthingAt,blNo,closingAt,cutCtnrAt,cutNoAt,cutoffEntryAt,departureAt,entryAt,preBerthingAt,preDepartureAt,routeCode,vslCompany,vslnameCh):
        self.berthingAt = berthingAt
        self.blNo = blNo
        self.closingAt = closingAt
        self.cutCtnrAt = cutCtnrAt
        self.cutNoAt = cutNoAt
        self.cutoffEntryAt = cutoffEntryAt
        self.departureAt = departureAt
        self.entryAt = entryAt
        self.preBerthingAt = preBerthingAt
        self.preDepartureAt = preDepartureAt
        self.routeCode = routeCode
        self.vslCompany = vslCompany
        self.vslnameCh = vslnameCh
